package com.servers;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.entity.Consumer;

public interface ConsumerServers {
	
	Consumer getConsumerInfoByCid(int cid);
	Consumer getConsumerInfo(int cid,String address);
	Consumer getConsumerByName(String cname);
	List<Consumer> userLogin(String uname , String pwd);
	Consumer userLoginDemo(String uname , String pwd);
	int addConsumer( String uname, String pwd, String tel, String address);
	List<Consumer> findAllConsumer();
	int deleteConsumer(int cid);
	List<Consumer> findConsumerByCname(String cname);
    int updateConsumer(Consumer consumer);
    int updateConsumePwd(int cid,String cpwd);
}
